-- GENERATED SPELL FOR [Scarlet Lumberjack] --


function spell0_1884(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1884', 588, 1)
end

function spell1_1884(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1884', 15000, 1)
end

function Sorts_1884(pUnit, Event)
local choix_sorts_1884 = math.random(0, 1)
if choix_sorts_1884 == 0 then
pUnit:RegisterEvent('spell0_1884', 1, 1)
end
if choix_sorts_1884 == 1 then
pUnit:RegisterEvent('spell1_1884', 1, 1)
end
end

function mob1884_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1884', math.random(1500, 3000), 1)
end

function mob1884_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1884_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1884_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1884, 1, 'mob1884_Action')
RegisterUnitEvent(1884, 2, 'mob1884_Leave')
RegisterUnitEvent(1884, 3, 'mob1884_Kill')
RegisterUnitEvent(1884, 4, 'mob1884_Die')
